{{#extends @community.html}}


{{:title}}Каталог сообществ{{/:title}}


{{:init}}

    {{!connect "master.css" media="all" charset="utf-8"}}
    {{!connect "content.css" media="all" charset="utf-8"}}
    {{!connect "screen/community-head.css" media="screen" charset="utf-8"}}
    {{!connect "screen/portal.css" media="screen" charset="utf-8"}}
    {{!connect "screen/footer.css" media="screen" charset="utf-8"}}
    {{!connect "screen/layout-standard.css" media="screen" charset="utf-8"}}
    {{!connect "screen/content-cindex.css" media="screen" charset="utf-8"}}
    {{!connect "screen/widgets-default.css" media="screen" charset="utf-8"}}

    {{!connect "cpaint2.inc.js"}}
    {{!connect "misc.js"}}

    {{!connect "jquery.js"}}

    {{!connect "jplugins/jtemplates.js"}}
    <!-- {{!connect "jplugins/interface.js"}} -->
    {{!connect "jplugins/interface/idrag.js"}}
    {{!connect "jplugins/interface/idrop.js"}}
    {{!connect "jplugins/interface/iutil.js"}}
    {{!connect "jplugins/interface/isortables.js"}}
    {{!connect "jplugins/jquery.jeditable.pack.js"}}
	{{!connect "comm_cat.js"}}
	<a href="{{ajax_url}}" id="js_ajaxurl"></a>
{{/:init}}

{{:buttons}}
     <li class="moderator-" id="switch-sortable"><strong><a>Таскать сообщества или группы </a></strong></li>
     <br/><br/>
     <li class="moderator-" id="create_group"><a>Новая группа</a></li>
{{/:buttons}}
	
{{:body}}

    {{@:community_head}}
	{{@:buttons}}
    <!-- content zone -->
    <!-- Вот тут класс widgetcolumn это колонка в которой будет drag, а класс widget это итем которые таскается -->
    <div class="content-cindex layout-standard">
        <div class="layout-c-main contenthandler groupcontainer">
        <!--
        	<div class="group wg-droppable" id="group_2" style="padding: 5px; border: 2px dashed #CCCCCC">
        	<ul class="actionspanel-">
				<li class="delete-"><a href="#">Удалить</a></li>
			</ul>
			<h1>Полный пиздец</h1>
        	<p>empty</p>
        	</div>

        	<div class="group wg-droppable" id="group_1" style="padding: 5px; border: 2px dashed #CCCCCC">
        	<ul class="actionspanel-">
				<li class="delete-"><a href="#">Удалить</a></li>
			</ul>
			<h1>Полный писец 2</h1>
        	<p>empty</p>
        	</div>
        -->
        	{{!for groups do=@:group}}
        	{{:group}}
        	<div class="group wg-droppable" id="group_{{*oid}}" style="padding: 5px; border: 2px dashed #CCCCCC">
				<ul class="actionspanel-">
					<li class="delete-"><a href="#">Удалить</a></li>
				</ul>
				<h1>{{*name}}</h1>
				{{!for *communities do=@:community}}
        	</div>

        	{{/:group}}
        		
            <div class="group wg-droppable" id="group_general" style="padding: 5px; border: 2px dashed #FF0000">
            <h1>Общая группа</h1>
            {{!for gen_group_comm_s do=@:community}}
            {{:community}}
           	<div id="c{{*oid}}" class="community wg-sortable" style="border: 1px solid #000">
				<h2 class="header-">{{*oid}}</h2>
				<div class="content"><p>{{*title}}</p></div>
			</div>
            {{/:community}}
            </div>
        </div>
    </div>

    {{@html/common/footer.html}}

{{/:body}}
